// Volume.cpp: implementation of the Volume class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "phsshare.h"
#include "Volume.h"
#include "PersistentObjectVisitor.h"
#include "Project.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

using namespace PersistentObjectOperation;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

UE_IMPLEMENT_VISITOR(VolumeVisitor);

UE_IMPLEMENT_DYNAMIC(Volume, PersistentObject);

Volume::Volume()
{
	m_nVolumeID = ObjectNoSerialNumber;
}

Volume::~Volume()
{

}

BOOL Volume::Accept(PersistentObjectVisitor* pVisitor)
{
	ASSERT(pVisitor);
	void* pInfo = (void*)(VolumeVisitor::RuntimeClass());
	void* p = pVisitor->QueryInterface(VolumeVisitor::RuntimeClass());
	if(p != NULL)
		return ((VolumeVisitor*)(p))->Visit((Volume*)this);
	return TRUE;
}
